<?php

namespace App\Models\Gas;

use App\Models\Model;

class GasYh extends Model
{
    protected $table = 'akbus_gas_yh';

    protected $fillable = [
        'date_time',
        'custom_type',
        'card_type',
        'card_num',
        'license_plate_num',
        'consumption_type',
        'gas_volume',
        'gas_amt',
        'preferential_settlement',
        'give_away_amt',
        'preferential_amt',
        'card_balance',
        'operator',
        'deduction_time',
        'status',
    ];

    /**
     * 拼接车牌号字符
     *
     * @param  string  $value
     *
     * @return string
     */
    public function getLicensePlateNumAttribute($value)
    {
        return '陕G'.$value;
    }
}
